package com.ysd.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * ��Դʹ����־
 * @author
 *
 */
@Entity
@Table
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Consume_log {
	@Id
	@GeneratedValue
	private Integer cousume_log_id;
	private Integer card_id; // ��Ա����,���
	//@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private String in_time; // ����ʱ��
	//@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private String out_time; // �뿪ʱ��
	
	@OneToOne
	@JoinColumn(name = "read_romm_id") // ������,��ʵ�������,��Դ���
	private Read_room read_room;
	
	
}
